home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy: Best of 1985
/
Ahoy_Best_of_1985_1986_Double_L.d64
/
gameloader d'85
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
869b
|
31 lines
1 rem ************************
2 rem * gameloader *
3 rem * by tim brown *
4 rem ************************
5 poke53281,12:poke53280,12:print"[147][144]"
10 print"basic loader construction"
20 input"enter program name";na$
30 input"enter address to sys";ad$
40 nx$=left$(na$,1)+"x":ad=val(ad$)
50 print"insert program disk into drive"
60 print"y/n"
70 geta$:ifa$<>"y"anda$<>"n"then70
80 ifa$="n"thengosub9000:goto50
100 print"[147]now constructing loader"
110 open1,8,15:print#1,"r0:"+nx$+"="+na$
115 input#1,e,e$:ife>0thenprint"[147]error !":close1:goto10
117 close1:print"[147]":print"new"
120 print"100 ifa=0thena=1:load"chr$(34)nx$chr$(34)",8,1"
130 print"110 print"chr$(34)"ready"chr$(34)
140 print"130 sys"ad":new"
145 print"save"chr$(34)na$chr$(34)",8"
150 print"";:forr=631to644:poker,13:next
160 poke198,13:end
9000 s=54272:fore=stos+28:pokee,0:next
9010 poke54296,15:poke54277,0:poke54278,240
9020 poke54275,1:poke54274,0
9030 poke54273,33:poke54272,135:poke54276,65
9040 fort=1to500:next:poke54276,64
9050 poke54296,0
9090 return